package com.touchwp.java.wechat.message;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.touchwp.java.wechat.converter.CDATAAdapter;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "xml")
public class EventMessage extends Message {
	private static final long serialVersionUID = -3765622074004429883L;

	public EventMessage() {
	}

	@XmlJavaTypeAdapter(value = CDATAAdapter.class)
	@XmlElement(name="Event")
	private String event;
	
	@XmlJavaTypeAdapter(value = CDATAAdapter.class)
	@XmlElement(name="EventKey")
	private String eventKey;

	public String getEventKey() {
		return eventKey;
	}

	public void setEventKey(String eventKey) {
		this.eventKey = eventKey;
	}

	public String getEvent() {
		return event;
	}

	public void setEvent(String event) {
		this.event = event;
	}

}
